#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
int main(){
int fd = open("random_text.txt",O_RDWR|O_CREAT,0755);
if(fd<0){
    printf("erro\n");
}
char * writethis="I am a good boy!";

lseek(fd,500,SEEK_END);

write (fd,writethis,strlen(writethis));

close(fd);
 





    return 0;
}
         
        




